#include <stdio.h>

int main()
{
	int a = 5, b, c;
	scanf("%d %d", &b, &c);
	b += c;
	c = b - c;
	a -= (b + c);
	printf("%d %d %d", a, b, c);
	return 0;
}